home *** CD-ROM | disk | FTP | other *** search
- Path: news.bridge.net!news
- From: David Byrden <100101.2547@compuserve.com>
- Newsgroups: comp.lang.c++
- Subject: Re: inline feature or bug ?
- Date: 26 Feb 1996 09:21:03 GMT
- Organization: self-employed
- Message-ID: <4gru1v$k3j@news.bridge.net>
- References: <1996Feb25.221651.114799@kuhub.cc.ukans.edu>
- NNTP-Posting-Host: ppp-mia1-45.bridge.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
-
-
- >> I declare my functions as inline. I have a .cc file in which I
- >> implement the functions. I include inline at the function definitions
- >> and g++ cannot link the stuff
-
-
- Anh;
-
-
- Think very hard about what the compiler has to do when you call an
- inline function (answer at bottom)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Answer; it has to expand all the function code at the point of the
- call. So put your inline function definitions in the header file.
-
- David
-
-
-
-
-
-